home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
kermit.columbia.edu
/
kermit.columbia.edu.tar
/
kermit.columbia.edu
/
newsgroups
/
misc.19950329-19950528
/
000015_news@columbia.edu_Fri Mar 31 17:26:20 1995.msg
< prev
next >
Wrap
Internet Message Format
|
1995-07-31
|
2KB
Received: from apakabar.cc.columbia.edu by watsun.cc.columbia.edu with SMTP id AA09789
(5.65c+CU/IDA-1.4.4/HLK for <kermit.misc@watsun.cc.columbia.edu>); Fri, 31 Mar 1995 12:26:31 -0500
Received: by apakabar.cc.columbia.edu id AA05024
(5.65c+CU/IDA-1.4.4/HLK for kermit.misc@watsun); Fri, 31 Mar 1995 12:26:26 -0500
Path: news.columbia.edu!watsun.cc.columbia.edu!fdc
From: fdc@watsun.cc.columbia.edu (Frank da Cruz)
Newsgroups: comp.protocols.kermit.misc
Subject: Re: Trivial login script fails -- help
Date: 31 Mar 1995 17:26:20 GMT
Organization: Columbia University
Lines: 28
Message-Id: <3lhdvs$4sh@apakabar.cc.columbia.edu>
References: <3ld1rm$5qb@vatican.passport.ca>
Nntp-Posting-Host: watsun.cc.columbia.edu
Apparently-To: kermit.misc@watsun.cc.columbia.edu
In article <3ld1rm$5qb@vatican.passport.ca>,
Peter Renzland <peter@passport.ca> wrote:
>...
>input 20 login:
>output peter\13
>input 10 sword
>output xyzzy\13
>...
>
>I see the login prompt, then the script says "peter",
>then _nothing_ (the script swallows the Password: prompt)
>
Try doing it like this:
input 20 {login: }
if fail stop 1 No login prompt
output peter\13
input 10 {Password: }
if fail stop 1 No Password prompt
pause 1
output xyzzy\13
It's always good to have error handling. The other change is to
INPUT the *entire* prompt. UNIX login does not permit typeahead, and
it is likely that your script started sending the password too soon.
(The "pause 1" might not be necessary, but better safe than sorry.)
- Frank